package com.cdtu.room.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提醒与通知对象 notification
 * 
 * @author hcc
 * @date 2024-02-27
 */
public class Notification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 提醒与通知ID */
    private Long notificationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 日历ID */
    @Excel(name = "日历ID")
    private Long calendarId;

    /** 预约信息ID */
    @Excel(name = "预约信息ID")
    private Long reservationId;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date notificationTime;

    public void setNotificationId(Long notificationId) 
    {
        this.notificationId = notificationId;
    }

    public Long getNotificationId() 
    {
        return notificationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCalendarId(Long calendarId) 
    {
        this.calendarId = calendarId;
    }

    public Long getCalendarId() 
    {
        return calendarId;
    }
    public void setReservationId(Long reservationId) 
    {
        this.reservationId = reservationId;
    }

    public Long getReservationId() 
    {
        return reservationId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setNotificationTime(Date notificationTime) 
    {
        this.notificationTime = notificationTime;
    }

    public Date getNotificationTime() 
    {
        return notificationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notificationId", getNotificationId())
            .append("userId", getUserId())
            .append("calendarId", getCalendarId())
            .append("reservationId", getReservationId())
            .append("content", getContent())
            .append("notificationTime", getNotificationTime())
            .toString();
    }
}
